﻿//-----------------------------------------------------------------------
// <copyright file="FacetDateTimeType.cs" company="Forebrain Technology, LLC">
//
// Copyright (c) Forebrain Technology, LLC. All rights reserved.
// 
// This source code is released under the Microsoft Public License (Ms-PL).
//
// </copyright>
//-----------------------------------------------------------------------
namespace PivotCollectionTools.Xml
{
    using System;
    using System.Xml;
    using System.Xml.Serialization;

    /// <summary>
    /// A DateTime facet value.
    /// </summary>
    [SerializableAttribute()]
    [XmlType(Namespace = "http://schemas.microsoft.com/collection/metadata/2009")]
    public partial class FacetDateTimeType : XmlNodeBase
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="FacetDateTimeType"/> class.
        /// </summary>
        public FacetDateTimeType()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="FacetDateTimeType"/> class.
        /// </summary>
        /// <param name="value">The value.</param>
        public FacetDateTimeType(DateTime value)
        {
            this.Value = value;
        }
        
        /// <summary>
        /// Gets or sets the value.
        /// </summary>
        /// <value>The value of the facet date time type.</value>
        [XmlAttribute(DataType="dateTime")]
        public DateTime Value { get; set; }
    }
}
